<template>
  <div class="category">
    <slot a="1" b="2" c="3" :newsList="newsList"></slot>
  </div>
</template>

<script>
  export default {
    name:'News',
    data() {
      return {
        newsList:[
          {id:'asdtyusa',title:'《震惊，两男子竟然在教室做出这种事》'},
          {id:'asdtyusb',title:'《注意了，这10种食物要命！》'},
          {id:'asdtyusc',title:'《尤雨溪真的懂Vue吗？》'}
        ]
      }
    },
  }
</script>

<style scoped>
  .category {
    background-color: skyblue;
    border-radius: 10px;
    width: 360px;
    height: 300px;
    box-shadow: 0 0 10px;
  }
  li {
    font-size: 17px;
  }
</style>